package model.grove;

/**
 * Touch Sensor<br/>
 * 触るとONになり、離すとOffになる。<br/>
 *
 * @author uehara
 *
 */
public class TouchSensor extends OnOffSensor {
	public TouchSensor() {
		super("touch");
	}

	public boolean isTouched() {
		return isOn();
	}

	public boolean isReleased() {
		return isOff();
	}

	public void touch() {
		on();
	}

	public void release() {
		off();
	}

}
